﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceApplication.Dao.BBS;
using CommonLibrary.DataModel.BBS;

namespace ServiceApplication.Service.BBS
{
	public class BBSService
	{
        BBSDao bbsDao = new BBSDao();

        public InitCardEntities QueryAllHotCard()
        {
            return bbsDao.QueryAllHotCard();
        }

        public InitCardEntities QueryAllInitCard()
        {
            return bbsDao.QueryAllInitCard();
        }

        public InitCardEntity QueryInitCard(String inCarId)
        {
            return bbsDao.QueryInitCard(inCarId);
        }

        public ReplyCardEntities QueryAllReplyCard(String inCarId)
        {
            return bbsDao.QueryAllReplyCard(inCarId);
        }

        public String AddInitCard(InitCardEntity initEnty)
        {
            return bbsDao.AddInitCard(initEnty);
        }

        public void AddReplyCard(ReplyCardEntity replyEnty)
        {
            bbsDao.AddReplyCard(replyEnty);
        }

        public void DelInitCard(String inCardId)
        {
            bbsDao.DelInitCard(inCardId);
        }

        public String DelReplayCard(String reCardId)
        {
            return bbsDao.DelReplyCard(reCardId);
        }

        public String MarkHotCard(String inCardId,String updateTime)
        {
            return bbsDao.MarkHotCard(inCardId,updateTime);
        }

        public InitCardEntities QueryMyCards(String userId)
        {
            return bbsDao.QueryMyCards(userId);
        }
	}
}
